]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionSystem: Unset stylesheet file reference when unloaded
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 3 Aug 2018 16:19:14 +0000 (18:19 +0200)
committerMarco Trevisan <mail@3v1n0.net>
Mon, 3 Sep 2018 23:29:01 +0000 (23:29 +0000)
We must remove the GFile reference from the representing object when an
extension has been unloaded as this won't be used anymore later (e.g. as cached
ref).

js/ui/extensionSystem.js

index 6611b5a636b560bc7850528269cc1525743801b4..a7a3d2014a1f0c626c19cc60c680c014e165e94c 100644 (file)
@@ -76,6 +76,7 @@ function disableExtension(uuid) {
     if (extension.stylesheet) {
         let theme = St.ThemeContext.get_for_stage(global.stage).get_theme();
         theme.unload_stylesheet(extension.stylesheet);
+        delete extension.stylesheet;
     }
 
     try {